package cn.com.recode.e继承;

public class ChildrenPrice extends Price{

    @Override
    int getPriceCode() {
        return Movie.CHILDRENS;
    }

    @Override
    public double getCharge(int daysRented){
        double thisAmout = 0;
        thisAmout += 1.5;
        if (daysRented > 3) {
            thisAmout += (daysRented - 3) * 1.5;
        }
        return thisAmout;
    }
}
